.axiom-theme-switch {
  position: relative;
  display: inline-block;
}

.theme-toggle-btn {
  color: var(--text-color-secondary);
  transition: color 0.3s ease;
  
  &:hover {
    color: var(--axiom-theme-switch-toggle-hover-color, var(--primary-color));
  }
}

.theme-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--axiom-theme-switch-menu-margin-top, 8px);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-lg);
  z-index: 1000;
  min-width: var(--axiom-theme-switch-menu-min-width, 240px);
  padding: var(--axiom-theme-switch-menu-padding, 12px);
  animation: var(--axiom-theme-switch-menu-animation, slideDown 0.2s ease-out);
  backdrop-filter: var(--axiom-theme-switch-menu-backdrop-filter, blur(10px));
  -webkit-backdrop-filter: var(--axiom-theme-switch-menu-backdrop-filter, blur(10px));
}

.theme-menu-header {
  padding: var(--axiom-theme-switch-header-padding, 8px 12px);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--axiom-theme-switch-header-margin-bottom, 8px);
  
  .axiom-text {
    color: var(--text-color);
  }
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--axiom-theme-switch-options-gap, 8px);
  max-height: var(--axiom-theme-switch-options-max-height, 300px);
  overflow-y: auto;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--axiom-theme-switch-option-padding, 12px 8px);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: var(--axiom-theme-switch-option-border-width, 2px) solid transparent;
  
  &:hover {
    background: var(--axiom-theme-switch-option-hover-bg, var(--bg-color-secondary));
    border-color: var(--axiom-theme-switch-option-hover-border-color, var(--border-color));
  }
  
  &.active {
    background: var(--axiom-theme-switch-option-active-bg, var(--primary-color-light));
    border-color: var(--axiom-theme-switch-option-active-border-color, var(--primary-color));
    
    .axiom-text {
      color: var(--axiom-theme-switch-option-active-text-color, var(--primary-color));
      font-weight: var(--axiom-theme-switch-option-active-text-weight, 600);
    }
  }
}

.theme-preview {
  display: flex;
  gap: var(--axiom-theme-switch-preview-gap, 2px);
  margin-bottom: var(--axiom-theme-switch-preview-margin-bottom, 8px);
  border-radius: var(--axiom-theme-switch-preview-radius, 4px);
  overflow: hidden;
  box-shadow: var(--axiom-theme-switch-preview-shadow, 0 2px 4px rgba(0, 0, 0, 0.1));
  
  .preview-color {
    width: var(--axiom-theme-switch-preview-color-width, 16px);
    height: var(--axiom-theme-switch-preview-color-height, 16px);
    
    &.primary {
      background: var(--primary-color);
    }
    
    &.secondary {
      background: var(--success-color);
    }
    
    &.accent {
      background: var(--warning-color);
    }
  }
}

.theme-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--axiom-theme-switch-overlay-z-index, 999);
  background: transparent;
}

// 动画
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

// 响应式调整
@media (max-width: 768px) {
  .theme-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    max-width: var(--axiom-theme-switch-mobile-max-width, 90vw);
    max-height: var(--axiom-theme-switch-mobile-max-height, 70vh);
    overflow: auto;
  }
  
  .theme-options {
    grid-template-columns: repeat(var(--axiom-theme-switch-mobile-options-columns, 3), 1fr);
  }
  
  .theme-option {
    padding: var(--axiom-theme-switch-mobile-option-padding, 8px 6px);
    
    .theme-preview {
      .preview-color {
        width: var(--axiom-theme-switch-mobile-preview-color-size, 12px);
        height: var(--axiom-theme-switch-mobile-preview-color-size, 12px);
      }
    }
  }
} 